package com.raylu.utils;

import java.sql.Timestamp;

public class ItemViewCountPerWindow {
    public String itemId;
    public Long count;
    public Long windowStart;
    public Long windowEnd;

    public ItemViewCountPerWindow(String itemId, Long count, Long windowStart, Long windowEnd) {
        this.itemId = itemId;
        this.count = count;
        this.windowStart = windowStart;
        this.windowEnd = windowEnd;
    }

    public ItemViewCountPerWindow() {
    }

    @Override
    public String toString() {
        return "ItemViewCountPerWindow{" +
                "itemId='" + itemId + '\'' +
                ", count='" + count + '\'' +
                ", windowStart=" + new Timestamp(windowStart) +
                ", windowEnd=" + new Timestamp(windowEnd) +
                '}';
    }
}
